home *** CD-ROM | disk | FTP | other *** search
- Path: keats.ugrad.cs.ubc.ca!not-for-mail
- From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
- Newsgroups: comp.lang.c
- Subject: Re: Vector Graphics
- Date: 11 Apr 1996 22:56:02 -0700
- Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
- Message-ID: <4kkr9iINN6ha@keats.ugrad.cs.ubc.ca>
- References: <4kgoa9$i12@sue.cc.uregina.ca>
- NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
-
- In article <4kgoa9$i12@sue.cc.uregina.ca>,
- Chris Gerber <ibp2@leroy.cc.uregina.ca> wrote:
- >Hello, I'm trying to do vector (3d) graphics, and I have all the math for
- >doing transformations and shading and whatnot, but it all uses x,y,z
- >addressing, which is fine, but I need to find a way to convert a vector
- >into an x,y screen co-ordinate so I can draw it. If anyone has some math
- >algorythm for that, or a function like:
- >
- >void vector2point(VECTOR *p3d, int *x, int *y)
-
-
- {
- /* the easiest projection is this: */
-
- *x = p3d->x;
- *y = p3d->y;
- }
-
-
- If you want something more sophisticated, ask in a pertinent newsgroups.
- Vector transformations, linear or otherwise, don't belong in a C discussion.
- Take a linear algebra course or something.
- --
-
-